<!DOCTYPE html>

<html>
<head>
  <style>
    #box {
      position: absolute;
      height: 100px;
      width: 100px;
      left: 0px;
      top: 0px;
      background-color: blue;
      transition-duration: 0s, 0.5s;
      transition-timing-function: linear;
      transition-property: top, left;
    }
  </style>
  <script src="../animations/resources/animation-test-helpers.js"></script>
  <script type="text/javascript">
    
    const expectedValues = [
      // [time, element-id, property, expected-value, tolerance]
      [0.25, "box", "left", 50, 10],
      [0.25, "box", "top", 100, 0],
    ];
    
    function setupTest()
    {
      var box = document.getElementById('box');
      box.style.top = '100px';
      box.style.left = '100px';
    }
    
    runTransitionTest(expectedValues, setupTest);
  </script>
</head>
<body>

<p>Tests that with a zero duration transition on top, it does not animate</p>
<div id="box">
</div>
<div id="result">
</div>
</body>
</html>
